package com.zy.dubbo.provider.service;

import com.zy.dubbo.api.test.TestService;
import org.apache.dubbo.config.annotation.DubboService;

import java.text.SimpleDateFormat;
import java.util.Date;

@DubboService
public class TestServiceImpl implements TestService {

    public String getInfo(String id) {
        return "id -> " + id + " , time -> " + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
    }
}
